import http from './interface'

export const getimg = (fl) => {
	return http.request({
		url: '/api/weather/now',
		data: {
			zd:'mobile',
			fl: fl,
			gs:'json'
		},
		dataType: 'json',
		method: 'GET',
	})
}

export const weather_now = (location) => {
	return http.request({
		url: '/api/weather/now',
		data: {
			location: location
		},
		dataType: 'json',
		method: 'POST',
	})
}
export const weather_life = (location) => {
	return http.request({
		url: '/api/weather/life',
		data: {
			location: location
		},
		dataType: 'json',
		method: 'POST',
	})
}

export const weather_day = (location) => {
	return http.request({
		url: '/api/weather/day',
		data: {
			location: location
		},
		dataType: 'json',
		method: 'POST',
	})
}
export const weather_talk = (location) => {
	return http.request({
		url: '/api/weather/talk',
		data: {
			location: location
		},
		dataType: 'json',
		method: 'POST',
	})
}
export const weather_city = (location) => {
	return http.request({
		url: '/api/weather/city',
		data: {
			location: location
		},
		dataType: 'json',
		method: 'POST',
	})
}




// 默认全部导出  import api from '@/common/vmeitime-http/'
export default {
	getimg,
	weather_now,
	weather_day,
	weather_life,
	weather_talk,
	weather_city,
}